import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'test_demo_logic.dart';
import 'test_demo_state.dart';

class TestDemoPage extends StatelessWidget {
  const TestDemoPage({super.key});

  @override
  Widget build(BuildContext context) {
    final TestDemoLogic logic = Get.put(TestDemoLogic());
    final TestDemoState state = Get.find<TestDemoLogic>().state;

    return Scaffold(
      appBar: AppBar(
        title: Text('首页'),
        leading: IconButton(icon: Icon(Icons.menu), onPressed: () {}),
        actions: [
          IconButton(icon: Icon(Icons.search), onPressed: () {}),
        ],
        backgroundColor: Colors.blue,
      ),
      body: Center(
        child: Text("测试页面", style: TextStyle(fontSize: 17),),
      ),
    );
  }
}
